cq_decode:
	protoc --go_out=plugins=grpc:gosdk/cq_decode  proto/cq_decode/cq_decode.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/cq_decode/cq_decode_http.yaml:\
	gosdk/cq_decode proto/cq_decode/cq_decode.proto

device_model:
	protoc --go_out=plugins=grpc:gosdk/device_model  proto/device_model/model_group.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/device_model/model_group_http.yaml:\
	gosdk/device_model  proto/device_model/model_group.proto

	protoc --go_out=plugins=grpc:gosdk/device_model  proto/device_model/model.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/device_model/model_http.yaml:\
	gosdk/device_model  proto/device_model/model.proto

device:
	protoc --go_out=plugins=grpc:gosdk/device  proto/device/device_group.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/device/device_group_http.yaml:\
	gosdk/device  proto/device/device_group.proto

	protoc --go_out=plugins=grpc:gosdk/device  proto/device/device.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/device/device_http.yaml:\
	gosdk/device  proto/device/device.proto

notice:
	protoc --go_out=plugins=grpc:gosdk/notice  proto/notice/notice.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/notice/notice_http.yaml:\
	gosdk/notice  proto/notice/notice.proto
	
scene_control:
	protoc --go_out=plugins=grpc:gosdk/scene_control  proto/scene_control/task.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/scene_control/task_http.yaml:\
	gosdk/scene_control  proto/scene_control/task.proto
	
user:
	protoc --go_out=plugins=grpc:gosdk/user  proto/user/user.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/user/user_http.yaml:\
	gosdk/user  proto/user/user.proto

screen:
	protoc --go_out=plugins=grpc:gosdk/screen  proto/screen/screen.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/screen/screen_http.yaml:\
	gosdk/screen  proto/screen/screen.proto


dtu_485:
	protoc --go_out=plugins=grpc:gosdk/dtu_485  proto/dtu_485/dtu_485.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/dtu_485/dtu_485_http.yaml:\
	gosdk/dtu_485  proto/dtu_485/dtu_485.proto

device_gateway:
	protoc --go_out=plugins=grpc:gosdk/device_gateway  proto/device_gateway/device_gateway.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/device_gateway/device_gateway_http.yaml:\
	gosdk/device_gateway  proto/device_gateway/device_gateway.proto

led_screen:
	protoc --go_out=plugins=grpc:gosdk/led_screen  proto/led_screen/led_screen.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/led_screen/led_screen_http.yaml:\
	gosdk/led_screen  proto/led_screen/led_screen.proto

sim:
	protoc --go_out=plugins=grpc:gosdk/sim  proto/sim/sim.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/sim/sim_http.yaml:\
	gosdk/sim  proto/sim/sim.proto

auth:
	protoc --go_out=plugins=grpc:gosdk/auth  proto/auth/auth.proto
	protoc --grpc-gateway_out=logtostderr=true,grpc_api_configuration=proto/auth/auth_http.yaml:\
	gosdk/auth  proto/auth/auth.proto
